<div id="pad-wrapper" class="new-user">
	<div class="row-fluid header">
		<h3>修改讲师</h3>
	</div>
	<div class="row-fluid form-wrapper">
		<!-- left column -->
		<div class="span9 with-sidebar">
			<div class="container">
				<form class="new_user_form form-horizontal" action="/teacher/save" method="post" id="dataForm" enctype="multipart/form-data">
					<input type="hidden" name="id" value="<?php echo $row['teacher_id']?>">
					<div class="field-box"></div>
					<div class="control-group form-group span12">
						<label class="control-label" for="teacher_name">讲师名称:</label> 
						<div class="controls col-lg-5">
							<input class="form-control" type="text" name="teacher_name"  value="<?php echo $row['teacher_name']?>" />
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="title">title:</label> 
						<div class="controls col-lg-5">
							<input class="form-control" type="text" name="title" value="<?php echo $row['title']?>"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="image">重新上传图片:</label> 
						<div class="controls col-lg-5">
							<?php if($row['teacher_image']):?> <img src="<?php echo STATIC_IMAGE . $row['teacher_image']?>" style="max-width:300px"><br/> <?php endif;?>
							<input class="form-control" type="file" accept="image/jpg,image/jpeg,image/png" name="teacher_image"/>
						</div>
					</div>
					<div class="span12 field-box"></div>
					<div class="control-group form-group span12 actions">
						<label class="control-label" for="" class="control-label"></label>
						<div class="controls col-lg-5">
							<input type="submit" class="btn-glow primary" value="提交" />
                                                        <input type="reset" class="btn-glow primary" value="取消" />
						</div>
					</div>
				</form>
			</div>
		</div>
		<!-- side right column -->
		<div class="span3 form-sidebar pull-right">
		</div>
	</div>
	<script type="text/javascript">
	$(document).ready(function() {
		$('#dataForm').bootstrapValidator({
			message: 'This value is not valid',
			feedbackIcons: {
				valid: 'glyphicon glyphicon-ok',
				invalid: 'glyphicon glyphicon-remove',
				validating: 'glyphicon glyphicon-refresh'
			},
			fields: {
				banner_name: {
					message: 'Banner名称不符合规则',
					validators: {
						notEmpty: {
							message: 'Banner名称是必填项，不能为空'
						}
					}
				},
				link: {
					message: '跳转连接不符合规则',
					validators: {
						notEmpty: {
							message: '跳转连接是必填项，不能为空'
						}
					}
				},
				t_sort: {
					message: '排序不符合规则',
					validators: {
						notEmpty: {
							message: '排序是必填项，不能为空'
						}
					}
				}
			}
		});
	});
	</script>
</div>